package com.timbrungardt.running.pages;

import java.util.List;

import org.apache.tapestry5.PersistenceConstants;
import org.apache.tapestry5.annotations.Persist;
import org.apache.tapestry5.annotations.Property;
import org.apache.tapestry5.ioc.annotations.Inject;
import org.hibernate.Session;

import com.timbrungardt.running.entities.Run;

public class Index
{
 
	@Inject
    private Session session;

    public List<Run> getRunHistory()
    {
        return session.createCriteria(Run.class).list();
    }
    
    @Persist(PersistenceConstants.FLASH)
    @Property
    private String rte;
    
}
